//
//  MyLabel.m
//  04UI-HomeWork
//
//  Created by 冀永金 on 16/7/19.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "MyLabel.h"

@implementation MyLabel
-(instancetype)initWithFrame:(CGRect)frame text:(NSString *)text tintColor:(UIColor *)tintColor backGroundColor:(UIColor *)backGroundColor font:(CGFloat)font {
    self = [super initWithFrame:frame];
    if (self) {
        self.text = text;
        self.textColor = tintColor;
        self.backgroundColor = backGroundColor;
        self.font = [UIFont systemFontOfSize:font];
    }
    return self;
}
+ (instancetype)labelWithFrame:(CGRect)frame text:(NSString *)text tintColor:(UIColor *)tintColor backGroundColor:(UIColor *)backGroundColor font:(CGFloat)font {
    return [[MyLabel alloc]initWithFrame:frame text:text tintColor:tintColor backGroundColor:backGroundColor font:font];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
